package edu.zut.service.impl;

import edu.zut.mapper.UserMapper;
import edu.zut.pojo.User;
import edu.zut.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    public User findByNameAndPsw(String name, String psw) {

        User user = userMapper.selectByNameAndPsw(name,psw);

        return user;
    }
}
